home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / textfile / faqs / mail_pth / part1
Encoding:
Internet Message Format  |  1992-12-26  |  6.9 KB

  1. Xref: bloom-picayune.mit.edu news.lists:2142 news.admin:25961 news.answers:3568
  2. Path: bloom-picayune.mit.edu!snorkelwacker.mit.edu!usc!rpi!gatech!purdue!spaf
  3. From: spaf@cs.purdue.EDU (Gene Spafford)
  4. Newsgroups: news.lists,news.admin,news.answers
  5. Subject: How to Construct the Mailpaths File
  6. Message-ID: <spaf-mailpaths_719471711@cs.purdue.edu>
  7. Date: 19 Oct 92 05:15:13 GMT
  8. Expires: 18 Dec 92 17:15:11 GMT
  9. Followup-To: news.admin
  10. Organization: Dept. of Computer Sciences, Purdue Univ.
  11. Lines: 129
  12. Approved: spaf@cs.purdue.EDU
  13. Supersedes: <spaf-mailpaths_716962663@cs.purdue.edu>
  14.  
  15. Archive-name: mailpaths/part1
  16. Original-author: Gene Spafford (spaf@cs.purdue.edu)
  17. Last-change: 5 May 1992 by spaf@cs.purdue.edu (Gene Spafford)
  18.  
  19. News 2.11 has been designed to make it simpler to submit articles to
  20. moderated newsgroups and to reply via mail to posted articles.  For
  21. these functions to work, the file "mailpaths" must exist in the news
  22. library and contain current information.  This file describes the
  23. syntax of the contents of the file and how to construct it for your site.
  24.  
  25. Syntax
  26. ------
  27. All lines in the file consist of a keyword followed by whitespace,
  28. followed by a printf-style format string which is used to encode a mail
  29. address.  The format string should be constructed so that there is a
  30. single "%s" in the field, and other information necessary to construct
  31. a valid address to the appropriate site (see below).
  32.  
  33. The keyword field consists of either the word "internet", the word
  34. "backbone", or some newsgroup pattern.  These are examined by the
  35. software to determine which format-string to use.  Note that the FIRST
  36. appropriate line matched is the one used -- thus, the "backbone"
  37. keyword line should be placed last in the line if regional or local
  38. moderated groups are supported.
  39.  
  40. Also note that the match software quits if it runs out of newsgroup
  41. pattern, and if the pattern present matches the newsgroup.  Thus,
  42. having the entries:
  43.     comp.foo        foo@nowhere.edu
  44.     comp.foo.bar    bar@someplace.org
  45. would always send mail to the moderator of "comp.foo" and not to the
  46. moderator of "comp.foo.bar", no matter which of the two newsgroups was
  47. specified!   For proper operation, you would need to list them thusly:
  48.     comp.foo.bar    bar@someplace.org
  49.     comp.foo        foo@nowhere.edu
  50.  
  51. Addresses that end up with both "!" and "@" symbols in the resulting
  52. address get converted so that only "!" symbols appear in the final
  53. address.  An address of the form "foo!bar!baz@barf" will get converted
  54. to "foo!bar!barf!baz" and then mailed.  This should work properly, for
  55. "dumb" mailers but you should test it to make sure; "smart" mailers
  56. should have the format fields encoded as a simple "%s". Note that *any*
  57. address with more than a single "@" in it is illegal.
  58.  
  59. Submissions to moderated groups
  60. -------------------------------
  61. When you attempt to post to a moderated newsgroup (indicated by the
  62. letter "m" in the 4th field of the "active" file for that group), 
  63. the action of "inews" is to mail the submission to the moderator.
  64. This is done by searching through "mailpaths" file for a keyword
  65. matching the newgroup being posted to, or, by default, the keyword
  66. "backbone".  Matching occurs as in the "sys" file -- thus,
  67. "world" and "all" will also match everything, while "news" or 
  68. "news.all" will only match articles posted in the "news" category.
  69. This feature can be used to support local moderated groups.
  70.  
  71. Once a line has been matched, the name of the moderated group is
  72. transformed into an address.  This is done by first turning all the
  73. imbedded periods within the newsgroup name into hyphens (e.g.,
  74. "news.lists" becomes "news-lists") because many mailers mishandle
  75. addresses with periods in the username (periods are supposed to be
  76. delimiters only in the host/domain part of RFC822 addresses, but some
  77. mailers "overreact").  Next, the transformed group name is encoded into
  78. an address using the format-string present on the line matched from
  79. "mailpaths" and the article is mailed.  Thus, a posting to "news.lists"
  80. from a site with the line
  81.     backbone        emory!gatech!%s 
  82. in the mailpaths file would have the article mailed to
  83. "emory!gatech!news-lists".  Likewise, a line like
  84.     backbone    %s@gatech.edu
  85. would result in the article being mailed to "news-lists@gatech.edu".
  86. To make the mechanism for moderated postings simpler, a subset of the 
  87. best-connected sites (plus some others) have committed to keeping a complete
  88. up-to-date set of mail aliases for the moderated groups.  Therefore, to
  89. build this line in your "mailpaths" file, you need only construct
  90. an address to get the mail to one of these sites.  In turn, once the
  91. submission reaches that site, it will be forwarded on to the
  92. appropriate moderator's mailbox.
  93.  
  94. The sites currently maintaining these lists are given in the following
  95. list.  Pick the one that is "closest" to your site and use it in your
  96. "backbone" format string:
  97.  
  98.     ames.arc.nasa.gov       beaver.cs.washington.edu  cis.ohio-state.edu
  99.     decuac.dec.com          decwrl.dec.com          eddie.mit.edu
  100.     kddlab.kddlabs.co.jp    linus.b.mitre.org       math.waterloo.edu
  101.     mcnc.org                ncar.ucar.edu           rutgers.edu
  102.     tektronix.tek.com       ucbvax.berkeley.edu     ucsd.edu
  103.     uflorida.cis.ufl.edu    uunet.uu.net            wrdis01.af.mil
  104.  
  105.  
  106. Internet Mail
  107. -------------
  108. If you define the "INTERNET" flag when you build 2.11 news, the
  109. software will use the internet-style "From:" header when addressing
  110. replies mailed to postings.  If your mailer does not have this capability,
  111. you can still (possibly) achieve the same thing by defining the
  112. "internet" line in your "mailpaths" file to forward such mail to
  113. a host that does have a mailer which understands internet-style addresses.
  114.  
  115. The format of this line is very similar to the "backbone" line.  As an
  116. example, consider:
  117.     internet    emory!gatech!mcnc!%s
  118. Thus, if "INTERNET" was defined when this version of news was built,
  119. any reply to a news article would not travel along the "Path:", but
  120. would instead be sent to "mcnc" for interpretation and remailing.
  121. For example, to reply to this article, the mail would be sent to
  122. "emory!gatech!mcnc!spaf@cs.purdue.edu"  ->
  123. "emory!gatech!mcnc!cs.purdue.edu!spaf"
  124.  
  125. Note:  This is being provided as a service to sites which do not
  126. have routing mailers or which have difficulty replying to articles.
  127. It is *NOT* intended for everyone to pass mail to other sites to send.
  128. Excessive use of this feature may result in severe problems for
  129. the sites doing the relaying, so please simply define this field to
  130. be "%s" if your mailer understands domain-style (internet-style)
  131. addressing.
  132.  
  133. The following sites will accept internet-format mail for forwarding:
  134.  
  135.     beaver.cs.washington.edu    decuac.dec.com  kddlab.kddlabs.co.jp
  136.     math.waterloo.edu           mcnc.org        ucsd.edu
  137.     uunet.uu.net
  138.  
  139. -- 
  140. Gene Spafford
  141. Software Engineering Research Center & Dept. of Computer Sciences
  142. Purdue University, W. Lafayette IN 47907-1398
  143. Internet:  spaf@cs.purdue.edu    phone:  (317) 494-7825
  144.